package com.blb.examsystem.dao.Impl;

import com.blb.common.entity.User;
import com.blb.common.utils.DBUtils;
import com.blb.examsystem.dao.UserDao;

import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class UserDaoImpl implements UserDao {
    @Override
    public List<User> selectByUsernameAndPassword(String username, String password) {
        return DBUtils.executeQuery(User.class,"select * from t_user where username=? and password=?",
                username,password);
    }

    @Override
    public int insertUser(User user) {
        return 0;
    }
}
